<%--
    Document   : index
    Created on : Mar 6, 2011, 9:48:04 AM
    Author     : Vinh_Dragon
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html lang="en">
    <head>
        <title></title>
        <meta charset="utf-8">
        <link rel="stylesheet" href="css/reset.css" type="text/css" media="all">
        <link rel="stylesheet" href="css/grid.css" type="text/css" media="all">
        <link rel="stylesheet" href="css/style.css" type="text/css" media="all">
        <script type="text/javascript" src="js/jquery-1.4.2.min.js" ></script>
        <script type="text/javascript" src="js/cufon-yui.js"></script>
        <script type="text/javascript" src="js/Bell_Gothic_Std_500.font.js"></script>
        <script type="text/javascript" src="js/Bell_Gothic_Std_700.font.js"></script>
        <script type="text/javascript" src="js/cufon-replace.js"></script>
        <!--[if lt IE 7]>
  	<script type="text/javascript" src="http://info.template-help.com/files/ie6_warning/ie6_script_other.js"></script>
        <![endif]-->
        <!--[if lt IE 9]>
  	<script type="text/javascript" src="js/html5.js"></script>
        <![endif]-->
    </head>

    <body>
        <!-- header -->
        <%
                    HttpSession sess = request.getSession(true);
                    if (sess.getAttribute("username") == null) {
                        response.sendRedirect("login.jsp");
                    }
        %>
    <header>
        <div class="header-bg">
            <div class="container_24">
                <div class="logo">
                    <a href="index.html"><img src="images/logo.jpg" alt=""></a>
                </div>
                <nav>
                    <ul>
                      <li><a href="#" class="current">Home</a></li>
                        <li><a href="surveys.jsp">Create Survey</a></li>
                        <li><a href="questions.jsp">Create Question</a></li>
                        <li><a href="statistic.jsp">Statistic</a></li>
                        <li><a href="#">Contacts</a></li>
                    </ul>
                </nav>
                <a href="#" class="rss">RSS Submit</a>
                <a href="#" class="main-banner"><img src="images/main-banner.jpg" alt=""></a>
            </div>
        </div>
    </header>
    <!-- content -->
    <section id="content">
        <div class="container_24">
            <div class="row">
                <div class="wrapper">
                    <div class="grid_16">
                        <div class="box">
                            <!--Phần nội dung chính của trang-->
                            <html:form action="/updatequestion">
                                <table border="1" cellspacing="10" align="center">
                                    <thead>
                                        <tr>
                                            <th colspan="2">Create a Question</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>Question-content:</td>
                                            <td><html:text property="question"></html:text></td>
                                        </tr>
                                        <tr>
                                            <td>Answer 1:</td>
                                            <td><html:text property="answer1"></html:text></td>
                                        </tr>
                                        <tr>
                                            <td>Answer 2:</td>
                                            <td><html:text property="answer2"></html:text></td>
                                        </tr>
                                        <tr>
                                            <td>Answer 3:</td>
                                            <td><html:text property="answer3"></html:text></td>
                                        </tr>
                                        <tr>
                                            <td>Answer 4:</td>
                                            <td><html:text property="answer4"></html:text></td>
                                        </tr>
                                        <tr>
                                            <td>Answer 5:</td>
                                            <td><html:text property="answer5"></html:text></td>
                                        </tr>
                                        <tr>
                                            <td colspan="2"><html:submit value="Save all"></html:submit></td>
                                        </tr>
                                    </tbody>
                                </table>

                            </html:form>
                        </div>
                    </div>
                    <div class="grid_8">
                        <h3>Super Survey!!!</h3>
                        <dl class="list2">
                            <dt><a href="questions.jsp">Create questions...</a></dt>
                            <dd>Create new questions.</dd>
                            <dt><a href="surveys.jsp">Create a survey...</a></dt>
                            <dd>Create a survey with existing questions or new questions</dd>
                        </dl>

                    </div>
                </div>
            </div>
            <div class="row">
                <div class="wrapper">
                    <div class="grid_16">

                        <div class="wrapper p2">

                        </div>

                    </div>
                    <div class="grid_8">

                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- footer -->
    <footer>
        <div class="container_24">
            <div class="wrapper">
                <div class="copy">ABC Company &copy; 2010 &nbsp; | &nbsp; <a href="http://www.websitetemplates.org">Website Templates</a> designed by <a title="Free Templates Online" href="http://www.freetemplatesonline.com">FTO</a> </div>
                <nav>
                    <ul>
                        <li><a href="index.html" class="current">Home page</a></li>
                        <li><a href="index-1.html">About Us</a></li>
                        <li><a href="index-2.html">Solutions</a></li>
                        <li><a href="index-3.html">Clients</a></li>
                        <li><a href="index-4.html">FAQ</a></li>
                        <li><a href="index-5.html">Contacts</a></li>
                    </ul>
                </nav>
            </div>
        </div>
    </footer>
    <script type="text/javascript"> Cufon.now(); </script>
</body>
</html>

